#include <tlhelp32.h>
BOOL FindProcess(wchar_t* process_name) {
	HANDLE hProcessSnap = NULL;
	PROCESSENTRY32 pe32 = {0};
	pe32.dwSize = sizeof(pe32);

	hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
	if(hProcessSnap == INVALID_HANDLE_VALUE)
		return FALSE;
	if(!Process32First(hProcessSnap, &pe32))
		return FALSE;

	do {
		if(!_wcsicmp(pe32.szExeFile, process_name))
			return TRUE;
	} while(Process32Next(hProcessSnap, &pe32));

	CloseHandle(hProcessSnap);

	return FALSE;
}